package o;

import android.content.Intent;
import android.text.TextUtils;
import com.huawei.appgallery.downloadengine.api.SessionDownloadTask;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import o.cfz.e;

public class cri implements e {
    private static final e ॱ = new cri();

    cri() {
    }

    public static void ॱ() {
        cfz.ˎ("PAYMENT_APP_INSTALL_REPORT_CALLBACK", ॱ);
    }

    public void ˎ(cfy o_cfy, Object obj) {
        crc.ॱ.ˋ("PaymentAppInstallReport", "start send install info to pay protect center!");
        if (obj instanceof SessionDownloadTask) {
            CharSequence ˋᐝ = ((SessionDownloadTask) obj).ˋᐝ();
            if (!TextUtils.isEmpty(ˋᐝ)) {
                if ("waplinkdetail|9269874cf71e48f1bf8472570a9eeb24".equals(ˋᐝ) || "waplinkdetail|27a094213a874128853bbbff2da328b0".equals(ˋᐝ)) {
                    ˏ(o_cfy);
                }
            }
        }
    }

    private void ˏ(cfy o_cfy) {
        Intent intent = new Intent("com.huawei.trustspace.ACTION_ADD_TO_TRUSTSPACE");
        intent.putExtra("packageName", o_cfy.ॱ());
        intent.setPackage("com.huawei.trustspace");
        cra.ˊ().startService(intent);
        crc.ॱ.ˋ("PaymentAppInstallReport", "sendPayInstallReport success!");
    }

    public void ˋ(cfy o_cfy, ResponseBean responseBean) {
    }
}
